﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;

namespace SDT.Site.ViewModels
{    
    public class ArticleIndexViewModel
    {
        public IPagedList<Article> Articles { get; set; }
        public IList<ArticleCategory> Categories { get; set; }
        public ArticleCategory Category { get; set; }
        public string MetaKeyword { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
    public class ArticleDetailViewModel
    {
        public Article Article { get; set; }
    }
    public class ArticleListViewModel
    {
        public IList<Article> Articles { get; set; }
        public ArticleCategory Category { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string RootImageUrl { get; set; }

        public string ControllerName { get; set; }
        public string ActionList { get; set; }
        public string ActionDetails { get; set; }
    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 04/08/2011
    /// </summary>
    public class ArticleInputModels
    {
        public ArticleInputModels()
        {
            // Nothing to do
        }

        public Article Article
        {
            get;
            set;
        }

        public ArticleCategory Category
        {
            get;
            set;
        }

    }
}
